styleproperty: Remove _gtk_style_property_unpack()
authorBenjamin Otte <otte@redhat.com>
Mon, 2 Jan 2012 01:22:52 +0000 (02:22 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 9 Jan 2012 17:37:54 +0000 (18:37 +0100)
The function is no longer needed in public API

gtk/gtkcssshorthandproperty.c
gtk/gtkstyleproperty.c
gtk/gtkstylepropertyprivate.h

index bc0e802eed6e9ca8785e7eef72985919540d648f..79fb1d24f040ad8be67ec631c58b65789afd1f25 100644 (file)
@@ -71,7 +71,7 @@ _gtk_css_shorthand_property_assign (GtkStyleProperty   *property,
   GParameter *parameters;
   guint i, n_parameters;
 
-  parameters = _gtk_style_property_unpack (property, value, &n_parameters);
+  parameters = property->unpack_func (value, &n_parameters);
 
   for (i = 0; i < n_parameters; i++)
     {
@@ -196,7 +196,7 @@ gtk_css_shorthand_property_parse (GtkCssShorthandProperty *shorthand,
       return FALSE;
     }
 
-  parameters = _gtk_style_property_unpack (property, &val, &n_parameters);
+  parameters = property->unpack_func (&val, &n_parameters);
   g_value_unset (&val);
 
   for (i = 0; i < shorthand->subproperties->len; i++)
index 080e3abff4518365b0b8dfe452a5dd8c29bcb411..78037f3796f3fdf1b0f601c3ba3f07b96ecc2241 100644 (file)
@@ -455,19 +455,6 @@ gtk_style_property_real_parse_value (GtkStyleProperty *property,
     return _gtk_css_style_parse_value (value, parser, base);
 }
 
-GParameter *
-_gtk_style_property_unpack (GtkStyleProperty *property,
-                            const GValue     *value,
-                            guint            *n_params)
-{
-  g_return_val_if_fail (property != NULL, NULL);
-  g_return_val_if_fail (property->unpack_func != NULL, NULL);
-  g_return_val_if_fail (value != NULL, NULL);
-  g_return_val_if_fail (n_params != NULL, NULL);
-
-  return property->unpack_func (value, n_params);
-}
-
 /**
  * _gtk_style_property_assign:
  * @property: the property
index 2326a0933df9742d9600e1bffa40326ca16f1510..e50e453684ee53fbf75d5f2c5e1b82ae81d9b226 100644 (file)
@@ -99,10 +99,6 @@ void                     _gtk_style_property_register      (GParamSpec
                                                             GtkStylePrintFunc       print_func,
                                                             const GValue           *initial_value);
 
-GParameter *             _gtk_style_property_unpack        (GtkStyleProperty *      property,
-                                                            const GValue           *value,
-                                                            guint                  *n_params);
-
 gboolean                 _gtk_style_property_parse_value   (GtkStyleProperty *      property,
                                                             GValue                 *value,
                                                             GtkCssParser           *parser,